<template>
    <div class="messageDetail">
        <Header></Header>
        <div class="messageDetail-content-box">
            <div class="messageDetail-content">
                <div class="header">

                    <div class="title">我的消息</div>
                    <el-breadcrumb separator="/" class="other">
                        <el-breadcrumb-item to="/studyCenter">会员中心</el-breadcrumb-item>
                        <el-breadcrumb-item to="/message">消息列表</el-breadcrumb-item>
                        <el-breadcrumb-item>{{title}}</el-breadcrumb-item>
                    </el-breadcrumb>
                </div>
                <div class="content">
                    <div class="content-title">
                        <h3>{{title}}</h3>
                        <div class="date">{{date}}</div>
                    </div>
                    <div class="rich-text" v-html="messageDetailContent"></div>
                </div>
            </div>
        </div>
        <Footer></Footer>
    </div>
</template>

<script>
import Header from "../../../components/common/header.vue";
import Footer from "../../../components/common/footer.vue";
export default {
  name: "messageDetail",
  components: {
    Header,
    Footer
  },
  mounted(){
   
  },
  data() {
    return {
      title: "初级冲刺串讲班直播课开始啦！",
      messageDetailContent:`<p>冲刺串讲班第一场直播课今晚7点不见不散，突破重点、查缺补漏、分析命题，提高做题效率和准确率，还未开通的学员联系网站首页客服购买，咨询直播链接。<img src="http://hmwx.wdexam.com/Uploads/ueImage/20190426/1556246661123994.png" title="1556246661123994.png" alt="%AL$}V[2IB}BM%FB7[7V1HQ.png"></p>`,
      date:'2019-04-26 10:48:05'
    };
  }
};
</script>
<style lang="scss">
.messageDetail {//整体
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  .content-footer {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    .recordSum {
      list-style: none;
      color: #999;
    }
  }
  .messageDetail-content-box {//大盒子
    width: 100%;
    flex-grow: 1;
    .messageDetail-content {//内容盒子
      width: 1210px;
      margin: 0 auto;
      box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.1);
      background-color: #fff;
      border: 1px solid transparent;
      border-radius: 0;
      height: auto;
      margin-top: 30px;
      margin-bottom: 5px;
      padding: 30px 20px 30px;
      .message-table {
        width: 100%;
      }
      .content{
        width: 100%;
        margin-top:20px;
        padding: 20px;
        .content-title{
            display:flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            padding-bottom: 20px;
            border-bottom: 1px dashed #eee;
            h3{
                font-size:20px;
                font-weight: 500;
            }
            .date{
                color: #999;
            }
        }
        .rich-text{
            padding: 20px 30px;
            display:flex;
            flex-direction: cloumn;
            font-size:14px;
            align-items: center;
        }
      }
      .header {
        //列表头部
        padding-top: 26px;
        display: flex;
        align-items: center;
        .title {
          font-weight: 600;
          font-size: 20px;
        }
        .other {
          margin: 8px 0 0 20px;
          .el-breadcrumb__inner a,
          .el-breadcrumb__inner.is-link {
            font-weight: 700;
            color: #0e90d2;
          }
          .el-breadcrumb__item:last-child .el-breadcrumb__inner,
          .el-breadcrumb__item:last-child .el-breadcrumb__inner a,
          .el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,
          .el-breadcrumb__item:last-child .el-breadcrumb__inner:hover {
            color: #0e90d2;
          }
        }
      }
    }
  }
}
</style>

